ci: publish demo apps to the Nightly repository
authorJordan Petridis <jpetridis@gnome.org>
Fri, 13 Nov 2020 18:00:17 +0000 (20:00 +0200)
committerJordan Petridis <jpetridis@gnome.org>
Fri, 13 Nov 2020 18:38:09 +0000 (20:38 +0200)
.gitlab-ci.yml
.gitlab-ci/flatpak-build.sh

index 5607e2e1aa32bb7ef76ccf49537bf6541fe79d68..18565b29131858cb0d0b7db80b5938309d089b28 100644 (file)
@@ -1,3 +1,7 @@
+include:
+  - project: 'gnome/citemplates'
+    file: 'flatpak/flatpak_ci_initiative.yml'
+
 stages:
   - build
   - analysis
@@ -149,6 +153,7 @@ msys2-mingw64:
   artifacts:
     paths:
       - "${APPID}-dev.flatpak"
+      - 'repo.tar'
     expire_in: 1 day
   script:
     - bash -x ./.gitlab-ci/flatpak-build.sh "${APPID}"
@@ -200,6 +205,24 @@ flatpak-master:icon-browser:
   variables:
     APPID: org.gtk.IconBrowser4
 
+# Publish the demo apps to the GNOME Nightly repo
+# https://wiki.gnome.org/Apps/Nightly
+# https://gitlab.gnome.org/GNOME/Initiatives/-/wikis/DevOps-with-Flatpak
+nightly demo:
+    extends: '.publish_nightly'
+    dependencies: ['flatpak-master:demo']
+    needs: ['flatpak-master:demo']
+
+nightly factory:
+    extends: '.publish_nightly'
+    dependencies: ['flatpak-master:widget-factory']
+    needs: ['flatpak-master:widget-factory']
+
+nightly icon-browser:
+    extends: '.publish_nightly'
+    dependencies: ['flatpak-master:icon-browser']
+    needs: ['flatpak-master:icon-browser']
+
 static-scan:
   image: $FEDORA_IMAGE
   stage: analysis
index 531741db1dee9821d8f0a376d5f559a839dbeb70..72397cc7ea6d03bb18504c9e6f47a739df792c54 100644 (file)
@@ -40,3 +40,8 @@ flatpak build-bundle \
         ${appid}-dev.flatpak \
         --runtime-repo=https://nightly.gnome.org/gnome-nightly.flatpakrepo \
         ${appid}
+
+# to be consumed by the nightly publish jobs
+if [[ $CI_COMMIT_BRANCH == master ]]; then
+        tar cf repo.tar ${repodir}
+fi